package cn.webestar.scms.security.api;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class PhoneNumLoginDto {

    @NotBlank(message = "不能为空")
    @Size(min = 5, max = 20, message = "长度必须在5到20个字符之间")
    private String phoneNum;

    @NotBlank(message = "不能为空")
    @Size(min = 4, max = 6, message = "长度必须在4到6个数字")
    private String smsCode;

}
